import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

class ToastUtil{
  static void toast(String msg){
    Fluttertoast.showToast(msg: msg,toastLength: Toast.LENGTH_SHORT);
  }
  static void toastErr(String msg){
    Fluttertoast.showToast(msg: msg,toastLength: Toast.LENGTH_SHORT,
    gravity: ToastGravity.CENTER,
    backgroundColor: Colors.red,
    textColor: Colors.white);
  }
}